package com.xdf.xzymanagementsystem.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
* @Description : <#if tableInfo.remarks??>${tableInfo.remarks}</#if> cc代码生成器
* @Author : chanchaw
* @Date : ${.now}
*/
@Data
@Builder
public class ${tableInfo.modelClassName} implements Serializable,Cloneable {
    private static final long serialVersionUID = 1L;
    <#-- 遍历字段声明私有属性 -->
    <#list tableInfo.fieldInfoList as fieldInfo>
    <#if fieldInfo.javaType="java.util.Date">
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    </#if>
    private ${fieldInfo.javaType} ${fieldInfo.attributeName};<#if fieldInfo.remarks??>//${fieldInfo.remarks}</#if>
    </#list>

    // 无参构造方法
    @Tolerate
    public ${tableInfo.modelClassName}(){}

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    // ======================= 自定义代码请写在后面 ==============================
}